<?php

/*
 * Loads all the necessary classes. If you need to include any class include here
 * 
 */
// define extension paths


// Load top level functions
include INCLUDE_PATH . 'functions.php';

// Load Classes and Functions
include CLASS_PATH . 'baseclass.php';
include(CLASS_PATH . 'db.php');
include CLASS_PATH . 'session.php';
include CLASS_PATH . 'params.php';
include CLASS_PATH . 'rewrite.php';

include CLASS_PATH . 'location.php';
include CLASS_PATH . 'view.php';


// include models
include MODEL_PATH . 'basemodel.php';
include MODEL_PATH . 'categories.php';
include MODEL_PATH . 'preference.php';
include MODEL_PATH.'item.php';
// include helper functions
include FUNCTION_PATH . 'fcategories.php';
include CLASS_PATH . 'plugins.php';



// unregister globals if enabled in PHP for security purpose
unregister_globals();
Session::newInstance()->session_start(); // start session
// Activate All the plugins

$plugins=new plugins();
$plugins->run();
$plugin=array();
//$plugin['name']='test';
//$plugin['path']='test/index.php';
//$plugins->activate($plugin);




//Start Cache
ob_start();
ob_implicit_flush(0); // set implicit flush to false;
